#!/usr/bin/env python
# -*- coding: utf-8 -*-

__author__ = 'dong'

import requests
import pytesseract
from PIL import Image
from pytesser import *

image = Image.open('test.jpg')
print image_to_string(image)
# print image
# vcode = pytesseract.image_to_string(image)
# print vcode

# url = 'http://www.555gk.com/include/getcode.asp'
# r = requests.get(url)
# print r.status_code
# # bmp
# print r.headers
# with open('vcode.bmp', 'wb') as fd:
#     fd.write(r.content)